package nero.yncc.com.createart.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import nero.yncc.com.createart.R;
import nero.yncc.com.createart.activity.ActivityWeb;
import nero.yncc.com.createart.bean.BeanAd;
import nero.yncc.com.createart.bean.GodBean;
import nero.yncc.com.createart.utils.ImageUtils;

/**
 * Created by Brainstorm on 2017/a3/19.
 */

public class FragmentGoodsDetail extends Fragment {

    String url;

    ImageView iv_ad;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_ad_goodsdetail, container, false);
        try {
            url = getArguments().getString("url");
//
//
//            tv_ad=(TextView) view.findViewById(R.id.tv_ad);
            iv_ad = view.findViewById(R.id.iv_ad);
            ImageUtils.BindImage(getContext(), iv_ad, url,2);

        } catch (Exception e) {

        }

        return view;
    }


}